<div class="row-fluid">
    <a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">列表数据</a>
    <div class="well">
        <div class="btn-toolbar">
            <!--<button class="btn btn-primary ifrm" data-url="/goods/addGoods" data-width="770" data-height="730" data-title="添加商品" data-params="sum/<?=$enckey?>" style="position:relative;float:right;padding:3px 6px;margin-right:10px">添加商品</button>-->
            <form>
                <label style="display: inline;">商品名称：</label><input class="input input-medium" type="text" name="goods_title" value="<?=I('get.goods_title')?>" />
                <label style="display: inline;">&nbsp;&nbsp;所属仓库：</label>
                    <!--<input class="input input-medium" type="text" name="goods_title" value="<?=I('get.storage')?>" />-->
                <select name="storage">
                    <option value="" <if condition="I('get.storage') eq null ">selected</if> >全部</option>
                    <option value="1" <if condition="I('get.storage') eq 1 ">selected</if> >XXX仓库A</option>
                    <option value="2" <if condition="I('get.storage') eq 2 ">selected</if> >XXX仓库B</option>
                    <option value="3" <if condition="I('get.storage') eq 3 ">selected</if> >XXX仓库C</option>
                </select>
                <input type="hidden" value="<?=I('get.res')?>" name="res" />
                <button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
            </form>
        </div>
        <hr>
        <table class="table">
            <thead>
            <tr>
                <th style="text-align:center">商品id</th>
                <th style="text-align:center">所属仓库</th>
                <th style="text-align:center">商品图片</th>
                <th style="text-align:left">商品标题</th>
                <th style="text-align:center">库存</th>
                <th style="text-align:center">销量</th>
                <th style="text-align:center">商品价格</th>
                <th style="text-align:center">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if($getData){foreach($getData AS $key=>$val){ ?>
            <tr>
                <td style="text-align:center;vertical-align:middle"><?=$val['goods_id']?></td>
                <td style="text-align:center;vertical-align:middle">XXX仓库(暂时写死)</td>
                <td style="text-align:center;vertical-align:middle"><img src="<?=$val['goods_pic']?>" style="width:100px" /></td>
                <td style="text-align:left;vertical-align:middle"><?=$val['goods_title']?></td>
                <td style="text-align:center;vertical-align:middle"><?=$val['kcun']?> 件</td>
                <td style="text-align:center;vertical-align:middle"><?=$val['sales']?> 件</td>
                <td style="text-align:center;vertical-align:middle"><?=$val['goods_price']?> / <?=$val['goods_attr']?></td>
                <td style="text-align:center;vertical-align:middle">
                    <a class="ifrm btn btn-info" href="javascript:void(0)" data-url="/storage/goodsEdit" data-width="770" data-height="730" style="padding: 0px 4px;" data-title="修改项目" data-params="goods_id/<?=$val['goods_id']?>"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
                    <a href="/goods/deGoods?goods_id=<?=$val['goods_id']?>" style="padding: 0px 4px;" class="deproject btn btn-danger" title="删除该商品" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                </td>
            </tr>
            <?php }}else{?>
            <tr><td style="text-align:center;vertical-align:middle" colspan=7>暂无数据</td></tr>
            <?php }?>
            </tbody>
        </table>
        <span style="float:right;margin-top:-44px"><?=$page?></span>
    </div>
</div>